package Resource;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;

public class BufferedReader_01 {

    public static void main(String[] args) {
        try
        (
                Reader fr = new FileReader("src/test1.txt");
                BufferedReader br = new BufferedReader(fr);
        )


        {
            String line;
            while ((line=br.readLine())!=null){
                System.out.println(line);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
